package home.projects.aop.components;

import org.apache.commons.chain.Context;
import org.apache.commons.chain.impl.ChainBase;

public class TestComponent extends ChainBase {

   public void doOne() {
      System.out.println("Doing one");
   }

   public void doTwo() {
      System.out.println("Doing two");
   }

   public void doAll() {
      doOne();
      doTwo();
   }
   
   public boolean execute(Context ctx) throws Exception {
      doAll();
      return false;
   }

}
